package com.bonc.rms.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bonc.rms.dao.PetGoodsDao;
import com.bonc.rms.service.PetGoodsService;

@Service(value = "petGoodsServiceImpl")
public class PetGoodsServiceImpl implements PetGoodsService{
	@Autowired
	PetGoodsDao petGoodsDao;

	@Override
	public List<Map<String, Object>> getFoodsInfo() {
		return petGoodsDao.getFoodsInfo();
	}

	@Override
	public List<Map<String, Object>> getSingleFoodInfo(Integer foodId) {
		return petGoodsDao.getSingleFoodInfo(foodId);
	}

	@Override
	public List<Map<String, Object>> updateFoodInfo(Integer foodId, String foodName, String inventory, String pic,
			String price, String quality, String sold) {
		return petGoodsDao.updateFoodInfo(foodId, foodName, inventory, pic,
				price, quality, sold);
	}

	@Override
	public Object deleteFoodInfo(Integer foodId) {
		return petGoodsDao.deleteFoodInfo(foodId);
	}

}
